#include "contrlDevices.h"

int secondFloorLightOpen()
{
	digitalWrite(LED3_PIN,LOW);
}

int secondFloorLightClose()
{
	digitalWrite(LED3_PIN,HIGH);
}

int secondFloorLightInit()
{
	pinMode(LED3_PIN,OUTPUT);
	digitalWrite(LED3_PIN,HIGH);

}

contrl secondFloorLight = {
	.devicesName = "secondFloorLight",
	.open = secondFloorLightOpen,
	.close = secondFloorLightClose,
	.deviceInit = secondFloorLightInit
};

contrl *addSecondFloorLightToDeviceLink(contrl *phead)
{
	if(phead != NULL) secondFloorLight.next = phead;
	return &secondFloorLight;
}